package com.wyl.niupi.framework.tools;

import cn.hutool.core.io.FileUtil;
import cn.hutool.http.HttpUtil;

/**
 * 下载网络文件脚本
 * @author 吴宇亮 on 2020/12/3 9:17
 */
public class HttpTool {

    public static void main(String[] args) {
        for (int i = 0; i <= 104; i++) {
            String fileUrl = "https://btsstatic.oss-cn-shanghai.aliyuncs.com/admin/emoji/" + i + ".gif";
            long size = HttpUtil.downloadFile(fileUrl, FileUtil.file("e:/emotions"));
        }
    }
}
